const validate = require('../utils/validate');
const Joi = require('joi');
const title = Joi.string().trim().disallow('').optional()
const id = Joi.required();
const completed = Joi.bool().optional();


exports.createSchema = validate({
   body: {
      title,
   },
});

exports.updateSchema = validate({
   body: {
      id,
      title,
      completed
   },
});

exports.removeSchema = validate({
   body: {
      id,
   },
});
